Tweak panel reader to look at only the frame containing the turn-by-turns to
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 7 Jul 2006 18:15:31 +0000 (18:15 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 7 Jul 2006 18:15:31 +0000 (18:15 +0000)
avoid entity encoding problem of &trade; symbol that was recently introduced.

git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@2217 f51c46e8-681c-474f-0cfe-069cfd0219fb

gpsbabel/google.c

index ff883dcc76a4ffdd7d3e7b0f7d324bf63d853b7e..a3e8a108fefccf757877bf4d41a4adb765ccc413 100644 (file)
@@ -329,9 +329,9 @@ google_read(void)
                  }
                  if ( panel ) {
                    panel += 8;
-                   end = strstr( panel, ">'," );
+                   end = strstr( panel, "/div><'," );
                    if ( end ) {
-                     *(end+1) = '\0';
+                     strcpy(end,"</div>");
                      end = panel;
                      while ( (end = strstr( end, "\\\"" ))) {
                        memmove( end, end+1, strlen(end)+1 );